package com.chungechunyemen.post.po;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String username;
	private String password;
	private String mail;
	private String sex;
	private Set replieses = new HashSet(0);
	private Set topicsForUserId = new HashSet(0);
	private Set topicsForLastuserId = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String username, String password, String mail, String sex) {
		this.username = username;
		this.password = password;
		this.mail = mail;
		this.sex = sex;
	}

	/** full constructor */
	public User(String username, String password, String mail, String sex,
			Set replieses, Set topicsForUserId, Set topicsForLastuserId) {
		this.username = username;
		this.password = password;
		this.mail = mail;
		this.sex = sex;
		this.replieses = replieses;
		this.topicsForUserId = topicsForUserId;
		this.topicsForLastuserId = topicsForLastuserId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Set getReplieses() {
		return this.replieses;
	}

	public void setReplieses(Set replieses) {
		this.replieses = replieses;
	}

	public Set getTopicsForUserId() {
		return this.topicsForUserId;
	}

	public void setTopicsForUserId(Set topicsForUserId) {
		this.topicsForUserId = topicsForUserId;
	}

	public Set getTopicsForLastuserId() {
		return this.topicsForLastuserId;
	}

	public void setTopicsForLastuserId(Set topicsForLastuserId) {
		this.topicsForLastuserId = topicsForLastuserId;
	}

}